Other Classes
The following classes are available globally.
-
An
MGLAttributedExpression
object associates text formatting attibutes (such as font size or font names) to anNSExpression
.Example
See morelet redColor = UIColor.red let expression = NSExpression(forConstantValue: "Foo") let attributes: [MGLAttributedExpressionKey: NSExpression] = [.fontNamesAttribute : NSExpression(forConstantValue: ["DIN Offc Pro Italic", "Arial Unicode MS Regular"]), .fontScaleAttribute: NSExpression(forConstantValue: 1.2), .fontColorAttribute: NSExpression(forConstantValue: redColor)] let attributedExpression = MGLAttributedExpression(expression, attributes:attributes)
Declaration
Objective-C
@interface MGLAttributedExpression : NSObject
Swift
class MGLAttributedExpression : NSObject
-
Information about an attribution statement, usually a copyright or trademark statement, associated with a map content source.
See moreDeclaration
Objective-C
@interface MGLAttributionInfo : NSObject
Swift
class MGLAttributionInfo : NSObject
-
Generic Event used when notifying an
See moreMGLObserver
. This is not intended nor expected to be created by the application developer. It will be provided as part of anMGLObservable
notification.Declaration
Objective-C
@interface MGLEvent : NSObject
Swift
class MGLEvent : NSObject
-
The
See moreMGLLoggingConfiguration
object provides a global way to set this SDK logging levels and logging handler.Declaration
Objective-C
@interface MGLLoggingConfiguration : NSObject
Swift
class MGLLoggingConfiguration : NSObject
-
An overlay that is placed within a
See moreMGLMapSnapshot
. To access this object, use-[MGLMapSnapshotter startWithOverlayHandler:completionHandler:]
.Declaration
Objective-C
@interface MGLMapSnapshotOverlay : NSObject
Swift
class MGLMapSnapshotOverlay : NSObject
-
The
See moreMGLNetworkConfiguration
object provides a global way to set a baseNSURLSessionConfiguration
, and other resources.Declaration
Objective-C
@interface MGLNetworkConfiguration : NSObject
Swift
class MGLNetworkConfiguration : NSObject
-
Base class for observers used to receive notifications from a type conforming to the
See moreMGLObservable
protocol. Subclasses should only override-[MGLObserver notifyWithEvent:]
.Declaration
Objective-C
@interface MGLObserver : NSObject
Swift
class MGLObserver : NSObject
-
A class containing information about the default User Location annotation view style.
See moreDeclaration
Objective-C
@interface MGLUserLocationAnnotationViewStyle : NSObject
Swift
class MGLUserLocationAnnotationViewStyle : NSObject